package com.qianbao.domain.user;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

public class UserEntity implements Serializable{

    private String customId; // 用户唯一标识

    private String avatar; // 用户头像

    private String account; //用户账号、昵称

    @NotNull(message = "密码不能为空")
    private String password; //密码

    @NotNull(message = "手机号不能为空")
    private String phone; // 手机号

    private Date createTime; // 创建时间

    private String token; //token

    private String idfa_deviceid; //设备唯一标识


    public String getCustomId() {
        return customId;
    }

    public void setCustomId(String customId) {
        this.customId = customId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getIdfa_deviceid() {
        return idfa_deviceid;
    }

    public void setIdfa_deviceid(String idfa_deviceid) {
        this.idfa_deviceid = idfa_deviceid;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "customId='" + customId + '\'' +
                ", avatar='" + avatar + '\'' +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", createTime=" + createTime +
                ", token='" + token + '\'' +
                ", idfa_deviceid='" + idfa_deviceid + '\'' +
                '}';
    }
}
